const express = require('express')
const app = express();
const Students = [
    {id:"1",name:'张三',age:19},
    {id:"2",name:'李四',age:21},
    {id:"3",name:'王五',age:26},
    {id:"4",name:'赵六',age:15}
]

app.get('/',(req,res)=>{
    res.send("Hello Vue!!!");
});

app.get('/Students',(req,res)=>{
    res.send(Students);
});

app.listen(5000,()=>console.log('服务器Server1已启动，请尝试使用5000端口访问'));